<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="box">111</div>
    <div class="box">222</div>

    <script src="./js/jquery-1.12.4.js"></script>
    <script>
        $(function(){
            //$(".box:eq(0)").html("<p>11111</p>"); // 有参数代表设置内容
            //$(".box:eq(1)").text("<p>11111</p>");

            console.log($(".box").html()); // 获取元素的内容
            console.log($(".box").text());


        })
    </script>
</body>
</html>